﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.Dtos.PreProductionDtos
{
    public class FanPreProductionDto
    {
        public int PreProductionId { get; set; } // 预生产计划id
        public string? PPDocuNumber { get; set; } // 单据编号
        public string? PPName { get; set; }// 预生产计划名称

        public int? PPNumTotal { get; set; } // 数量合计
        public int? PPType { get; set; }//来源单据类型
        public int? PPState { get; set; } // 预生产计划状态

        public int? PPGeneratedNum { get; set; } // 已生成生产计划数量

        public string? PPSmark { get; set; } // 备注
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string? UpdName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
        /// <summary>
        /// 预生产计划明细Dto
        /// </summary>
        public List<FanPreProductionDetailDto> FanDto { get; set; }
    }
    /// <summary>
    /// 预生产计划明细Dto
    /// </summary>
    public class FanPreProductionDetailDto
    {
        public int PreProducsId { get; set; } // 预生产计划产品id
        public string? PPDocuNumber { get; set; } // 单据编号
        public int? ProductId { get; set; } // 产品id
        public int? PPsNum { get; set; } // 本次计划数量

        public DateTime? PPsDeliveryDate { get; set; } // 交货日期
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? PNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? PName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? PSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? PUnit { get; set; }
        public string? PPsSmark { get; set; } // 备注
    }
}
